package com.study.meng.bigevent.entity;

import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.groups.Default;
import lombok.Data;

/**
 * @TableName category
 */
@Data
public class Category {
    @NotNull(message = "分类ID不能为空",groups = {Category.update.class})
    private Integer id;
    @NotEmpty(message = "分类名称不能为空")
    private String categoryName;
    @NotEmpty(message = "分类别名不能为空")
    private String categoryAlias;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Integer createUser;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private LocalDateTime updateTime;
    public interface add extends Default {}
    public interface update extends Default{}
}